package com.java.program_questions;

import java.util.Scanner;

/**
 * 问题：
 * 分析：
 */
public class Question23 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个整数：");
        int number = sc.nextInt();

        System.out.print("结果：" + digui(number));
    }

    private static int digui(int n) {
        if (n == 1) {
            return 10;
        } else {
            return digui(n - 1) + 2;
        }
    }
}
